<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
        <div class="form">
            <div class="form_header">
                <span style="float: left">LIST EVENT</span>
                <br style="clear:both;"/>
            </div>
        </div>
        <div style="margin-top: 10px;width: 100%;">
    <table class="list" style="width: 100%;">
        <tr>
            <th class="left">IMAGE</th>
            <th class="left">NAME</th>
            <th class="left">TYPE</th>
            <th>START DATE</th>
            <th>END DATE</th>
            <th>CREATOR</th>
            <th>FUNCTION</th>
        </tr>
        <logic:iterate id="event" name="allevents" scope="request" indexId="i">
        <tr class="${(i%2)==0 ? "even": "odd"}">
            <td class="left"><img src="/BluePumpkin/_assets/images/default_avatar.jpg"/></td>
            <td class="left">${event.eventName}</td>
            <td class="center">${event.eventType}</td>
            <td class="center">${event.startDate}</td>
            <td class="center">${event.endDate}</td>
            <td class="center">${event.createUserId}</td>
            <td class="center">
                <a class="edit" href="eventedit.do?eventId=${event.eventId}" onclick="submit();" title="Edit Employee"><em></em></a>
                <a class="del" href="javascript:void(0);" onclick="submit();" title="Delete Employee"><em></em></a>
            </td>
        </tr>
        </logic:iterate>

    </table>
</div>

